#include "cadc.h"

double getadc(ADC_HandleTypeDef *pin)
{
	unsigned int x;
	HAL_ADC_Start(pin);
	x=HAL_ADC_GetValue(pin);
	return x*3.3/4096;
}